package com.dykj.fireFighting.web.model.report;

import java.util.Date;
import java.util.Map;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/**
 * 设备报警记录对象 dev_his_zc
 * 
 * @author ruoyi
 * @date 2021-01-08
 */
public class DevHisZc
{
    private static final long serialVersionUID = 1L;

    /** 唯一标识 */
    private String code;

    /** 用户传输装置唯一编码 */
    private String devCode;

    /** 数据上传时间 */
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private Date upTime;

    /** 类型：用户传输装置1；设备：2    主机  3 */
    private String lx;

    /** 状态发生时间 */
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private Date ztfssj;

    /** 部件状态说明（中文）只做显示 */
    private String bjztSm;

    /** 部件状态 */
    private String bjzt;

    /** 系统类型（参照26875.3） */
    private String xtlx;

    /** 系统地址（参照26875.3） */
    private String xtdz;

    /** 报警复核（1未复核    0已复核） */
    private String status;

    /** 报警16进制码 */
    private String hex;

    /** 用于关联设备用 */
    private String id;

    /** $column.columnComment */
    private String sysType;

    /** 类型标志 */
    private String lxbz;

    /** 部件编码 */
    private String bjbm;

    /** 信号强度 */
    private String xhqd;

    /** 信号质量等级 */
    private String xhzldj;

    /** 信噪比 */
    private String xzb;

    /** 信号覆盖等级 ECL */
    private String xhfgdjecl;

    /** 漏电 */
    private String ld;

    /** 总有功电量 */
    private String zygdl;

    /** 电压 A */
    private String dya;

    /** 电压 B */
    private String dyb;

    /** 电压 C */
    private String dyc;

    /** 电流 A */
    private String dla;

    /** 电流 B */
    private String dlb;

    /** 电流 C */
    private String dlc;

    /** 温度 A */
    private String wda;

    /** 温度 B */
    private String wdb;

    /** 温度 C */
    private String wdc;

    /** 温度 N */
    private String wdn;

    /** AB 线电压  */
    private String abxdy;

    /** BC 线电压 */
    private String bcxdy;

    /** CA 线电压 */
    private String caxdy;

    /** AB 线电流 */
    private String abxdl;

    /** BC 线电流 */
    private String bcxdl;

    /** CA 线电流 */
    private String caxdl;

    /** A 相有功功率 */
    private String axyggl;

    /** B 相有功功率 */
    private String bxyggl;

    /** C 相有功功率 */
    private String cxyggl;

    /** 总有功功率 */
    private String zyggl;

    /** A 相无功功率 */
    private String axwggl;

    /** B 相无功功率 */
    private String bxwggl;

    /** C 相无功功率 */
    private String cxwggl;

    /** 总无功功率 */
    private String zwggl;

    /** 有功功率方向 */
    private String ygglfx;

    /** 无功功率方向 */
    private String wgglfx;

    /** 功率因数 */
    private String glys;

    /** 频率 */
    private String pl;

    /** 总无功电量 */
    private String zwgdl;

    private Map componentStateMap;

    //扩展字段

    private String unitId;

    private String deviceName;

    private String centerUnitId;

    private String unitName;

    public String getUnitId() {
        return unitId;
    }

    public void setUnitId(String unitId) {
        this.unitId = unitId;
    }

    public String getDeviceName() {
        return deviceName;
    }

    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }

    public String getCenterUnitId() {
        return centerUnitId;
    }

    public void setCenterUnitId(String centerUnitId) {
        this.centerUnitId = centerUnitId;
    }

    public String getUnitName() {
        return unitName;
    }

    public void setUnitName(String unitName) {
        this.unitName = unitName;
    }

    public Map getComponentStateMap() {
        return componentStateMap;
    }

    public void setComponentStateMap(Map componentStateMap) {
        this.componentStateMap = componentStateMap;
    }

    public void setCode(String code)
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }
    public void setDevCode(String devCode) 
    {
        this.devCode = devCode;
    }

    public String getDevCode() 
    {
        return devCode;
    }
    public void setUpTime(Date upTime) 
    {
        this.upTime = upTime;
    }

    public Date getUpTime() 
    {
        return upTime;
    }
    public void setLx(String lx) 
    {
        this.lx = lx;
    }

    public String getLx() 
    {
        return lx;
    }
    public void setZtfssj(Date ztfssj) 
    {
        this.ztfssj = ztfssj;
    }

    public Date getZtfssj() 
    {
        return ztfssj;
    }
    public void setBjztSm(String bjztSm) 
    {
        this.bjztSm = bjztSm;
    }

    public String getBjztSm() 
    {
        return bjztSm;
    }
    public void setBjzt(String bjzt) 
    {
        this.bjzt = bjzt;
    }

    public String getBjzt() 
    {
        return bjzt;
    }
    public void setXtlx(String xtlx) 
    {
        this.xtlx = xtlx;
    }

    public String getXtlx() 
    {
        return xtlx;
    }
    public void setXtdz(String xtdz) 
    {
        this.xtdz = xtdz;
    }

    public String getXtdz() 
    {
        return xtdz;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setHex(String hex) 
    {
        this.hex = hex;
    }

    public String getHex() 
    {
        return hex;
    }
    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setSysType(String sysType) 
    {
        this.sysType = sysType;
    }

    public String getSysType() 
    {
        return sysType;
    }
    public void setLxbz(String lxbz) 
    {
        this.lxbz = lxbz;
    }

    public String getLxbz() 
    {
        return lxbz;
    }
    public void setBjbm(String bjbm) 
    {
        this.bjbm = bjbm;
    }

    public String getBjbm() 
    {
        return bjbm;
    }
    public void setXhqd(String xhqd) 
    {
        this.xhqd = xhqd;
    }

    public String getXhqd() 
    {
        return xhqd;
    }
    public void setXhzldj(String xhzldj) 
    {
        this.xhzldj = xhzldj;
    }

    public String getXhzldj() 
    {
        return xhzldj;
    }
    public void setXzb(String xzb) 
    {
        this.xzb = xzb;
    }

    public String getXzb() 
    {
        return xzb;
    }
    public void setXhfgdjecl(String xhfgdjecl) 
    {
        this.xhfgdjecl = xhfgdjecl;
    }

    public String getXhfgdjecl() 
    {
        return xhfgdjecl;
    }
    public void setLd(String ld) 
    {
        this.ld = ld;
    }

    public String getLd() 
    {
        return ld;
    }
    public void setZygdl(String zygdl) 
    {
        this.zygdl = zygdl;
    }

    public String getZygdl() 
    {
        return zygdl;
    }
    public void setDya(String dya) 
    {
        this.dya = dya;
    }

    public String getDya() 
    {
        return dya;
    }
    public void setDyb(String dyb) 
    {
        this.dyb = dyb;
    }

    public String getDyb() 
    {
        return dyb;
    }
    public void setDyc(String dyc) 
    {
        this.dyc = dyc;
    }

    public String getDyc() 
    {
        return dyc;
    }
    public void setDla(String dla) 
    {
        this.dla = dla;
    }

    public String getDla() 
    {
        return dla;
    }
    public void setDlb(String dlb) 
    {
        this.dlb = dlb;
    }

    public String getDlb() 
    {
        return dlb;
    }
    public void setDlc(String dlc) 
    {
        this.dlc = dlc;
    }

    public String getDlc() 
    {
        return dlc;
    }
    public void setWda(String wda) 
    {
        this.wda = wda;
    }

    public String getWda() 
    {
        return wda;
    }
    public void setWdb(String wdb) 
    {
        this.wdb = wdb;
    }

    public String getWdb() 
    {
        return wdb;
    }
    public void setWdc(String wdc) 
    {
        this.wdc = wdc;
    }

    public String getWdc() 
    {
        return wdc;
    }
    public void setWdn(String wdn) 
    {
        this.wdn = wdn;
    }

    public String getWdn() 
    {
        return wdn;
    }
    public void setAbxdy(String abxdy) 
    {
        this.abxdy = abxdy;
    }

    public String getAbxdy() 
    {
        return abxdy;
    }
    public void setBcxdy(String bcxdy) 
    {
        this.bcxdy = bcxdy;
    }

    public String getBcxdy() 
    {
        return bcxdy;
    }
    public void setCaxdy(String caxdy) 
    {
        this.caxdy = caxdy;
    }

    public String getCaxdy() 
    {
        return caxdy;
    }
    public void setAbxdl(String abxdl) 
    {
        this.abxdl = abxdl;
    }

    public String getAbxdl() 
    {
        return abxdl;
    }
    public void setBcxdl(String bcxdl) 
    {
        this.bcxdl = bcxdl;
    }

    public String getBcxdl() 
    {
        return bcxdl;
    }
    public void setCaxdl(String caxdl) 
    {
        this.caxdl = caxdl;
    }

    public String getCaxdl() 
    {
        return caxdl;
    }
    public void setAxyggl(String axyggl) 
    {
        this.axyggl = axyggl;
    }

    public String getAxyggl() 
    {
        return axyggl;
    }
    public void setBxyggl(String bxyggl) 
    {
        this.bxyggl = bxyggl;
    }

    public String getBxyggl() 
    {
        return bxyggl;
    }
    public void setCxyggl(String cxyggl) 
    {
        this.cxyggl = cxyggl;
    }

    public String getCxyggl() 
    {
        return cxyggl;
    }
    public void setZyggl(String zyggl) 
    {
        this.zyggl = zyggl;
    }

    public String getZyggl() 
    {
        return zyggl;
    }
    public void setAxwggl(String axwggl) 
    {
        this.axwggl = axwggl;
    }

    public String getAxwggl() 
    {
        return axwggl;
    }
    public void setBxwggl(String bxwggl) 
    {
        this.bxwggl = bxwggl;
    }

    public String getBxwggl() 
    {
        return bxwggl;
    }
    public void setCxwggl(String cxwggl) 
    {
        this.cxwggl = cxwggl;
    }

    public String getCxwggl() 
    {
        return cxwggl;
    }
    public void setZwggl(String zwggl) 
    {
        this.zwggl = zwggl;
    }

    public String getZwggl() 
    {
        return zwggl;
    }
    public void setYgglfx(String ygglfx) 
    {
        this.ygglfx = ygglfx;
    }

    public String getYgglfx() 
    {
        return ygglfx;
    }
    public void setWgglfx(String wgglfx) 
    {
        this.wgglfx = wgglfx;
    }

    public String getWgglfx() 
    {
        return wgglfx;
    }
    public void setGlys(String glys) 
    {
        this.glys = glys;
    }

    public String getGlys() 
    {
        return glys;
    }
    public void setPl(String pl) 
    {
        this.pl = pl;
    }

    public String getPl() 
    {
        return pl;
    }
    public void setZwgdl(String zwgdl) 
    {
        this.zwgdl = zwgdl;
    }

    public String getZwgdl() 
    {
        return zwgdl;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("code", getCode())
            .append("devCode", getDevCode())
            .append("upTime", getUpTime())
            .append("lx", getLx())
            .append("ztfssj", getZtfssj())
            .append("bjztSm", getBjztSm())
            .append("bjzt", getBjzt())
            .append("xtlx", getXtlx())
            .append("xtdz", getXtdz())
            .append("status", getStatus())
            .append("hex", getHex())
            .append("id", getId())
            .append("sysType", getSysType())
            .append("lxbz", getLxbz())
            .append("bjbm", getBjbm())
            .append("xhqd", getXhqd())
            .append("xhzldj", getXhzldj())
            .append("xzb", getXzb())
            .append("xhfgdjecl", getXhfgdjecl())
            .append("ld", getLd())
            .append("zygdl", getZygdl())
            .append("dya", getDya())
            .append("dyb", getDyb())
            .append("dyc", getDyc())
            .append("dla", getDla())
            .append("dlb", getDlb())
            .append("dlc", getDlc())
            .append("wda", getWda())
            .append("wdb", getWdb())
            .append("wdc", getWdc())
            .append("wdn", getWdn())
            .append("abxdy", getAbxdy())
            .append("bcxdy", getBcxdy())
            .append("caxdy", getCaxdy())
            .append("abxdl", getAbxdl())
            .append("bcxdl", getBcxdl())
            .append("caxdl", getCaxdl())
            .append("axyggl", getAxyggl())
            .append("bxyggl", getBxyggl())
            .append("cxyggl", getCxyggl())
            .append("zyggl", getZyggl())
            .append("axwggl", getAxwggl())
            .append("bxwggl", getBxwggl())
            .append("cxwggl", getCxwggl())
            .append("zwggl", getZwggl())
            .append("ygglfx", getYgglfx())
            .append("wgglfx", getWgglfx())
            .append("glys", getGlys())
            .append("pl", getPl())
            .append("zwgdl", getZwgdl())
            .toString();
    }
}
